package com.atguigu.classroom.live.config;

import com.atguigu.classroom.live.mtcloud.MTCloud;
import com.atguigu.classroom.live.utils.LivePropertiesUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MTCloudConfig {
    @Autowired
    private LivePropertiesUtils livePropertiesUtils;
    @Bean
    public MTCloud mtCloudClient(){
        return new MTCloud(LivePropertiesUtils.OPENID,LivePropertiesUtils.OPENTOKEN);
    }
}
